home *** CD-ROM | disk | FTP | other *** search
- <refentry id="libgimp-gimppatterns" revision="19 Jan 2001">
- <refmeta>
- <refentrytitle>gimppatterns</refentrytitle>
- <manvolnum>3</manvolnum>
- <refmiscinfo>LIBGIMP Library</refmiscinfo>
- </refmeta>
-
- <refnamediv>
- <refname>gimppatterns</refname><refpurpose></refpurpose>
- </refnamediv>
-
- <refsynopsisdiv><title>Synopsis</title>
- <synopsis>
-
-
-
- <link linkend="gchar">gchar</link>* <link linkend="gimp-patterns-get-pattern-data">gimp_patterns_get_pattern_data</link> (<link linkend="gchar">gchar</link> *name,
- <link linkend="gint">gint</link> *width,
- <link linkend="gint">gint</link> *height,
- <link linkend="gint">gint</link> *mask_bpp,
- <link linkend="gint">gint</link> *length,
- <link linkend="guint8">guint8</link> **mask_data);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-patterns-popup">gimp_patterns_popup</link> (<link linkend="gchar">gchar</link> *pattern_callback,
- <link linkend="gchar">gchar</link> *popup_title,
- <link linkend="gchar">gchar</link> *initial_pattern);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-patterns-close-popup">gimp_patterns_close_popup</link> (<link linkend="gchar">gchar</link> *pattern_callback);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-patterns-set-popup">gimp_patterns_set_popup</link> (<link linkend="gchar">gchar</link> *pattern_callback,
- <link linkend="gchar">gchar</link> *pattern_name);
- </synopsis>
- </refsynopsisdiv>
-
-
-
-
-
- <refsect1>
- <title>Description</title>
- <para>
-
- </para>
- </refsect1>
-
- <refsect1>
- <title>Details</title>
- <refsect2>
- <title><anchor id="gimp-patterns-get-pattern-data">gimp_patterns_get_pattern_data ()</title>
- <programlisting><link linkend="gchar">gchar</link>* gimp_patterns_get_pattern_data (<link linkend="gchar">gchar</link> *name,
- <link linkend="gint">gint</link> *width,
- <link linkend="gint">gint</link> *height,
- <link linkend="gint">gint</link> *mask_bpp,
- <link linkend="gint">gint</link> *length,
- <link linkend="guint8">guint8</link> **mask_data);</programlisting>
- <para>
- Retrieve information about the currently active pattern (including
- data).
- </para>
- <para>
- This procedure retrieves information about the currently active
- pattern. This includes the pattern name, and the pattern extents
- (width and height). It also returns the pattern data.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>name</parameter> :</entry>
- <entry> the pattern name (\"\" means current active pattern).
- </entry></row>
- <row><entry align="right"><parameter>width</parameter> :</entry>
- <entry> The pattern width.
- </entry></row>
- <row><entry align="right"><parameter>height</parameter> :</entry>
- <entry> The pattern height.
- </entry></row>
- <row><entry align="right"><parameter>mask_bpp</parameter> :</entry>
- <entry> Pattern bytes per pixel.
- </entry></row>
- <row><entry align="right"><parameter>length</parameter> :</entry>
- <entry> Length of pattern mask data.
- </entry></row>
- <row><entry align="right"><parameter>mask_data</parameter> :</entry>
- <entry> The pattern mask data.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> The pattern name.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-patterns-popup">gimp_patterns_popup ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_patterns_popup (<link linkend="gchar">gchar</link> *pattern_callback,
- <link linkend="gchar">gchar</link> *popup_title,
- <link linkend="gchar">gchar</link> *initial_pattern);</programlisting>
- <para>
- Invokes the Gimp pattern selection.
- </para>
- <para>
- This procedure popups the pattern selection dialog.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>pattern_callback</parameter> :</entry>
- <entry> The callback PDB proc to call when pattern selection is made.
- </entry></row>
- <row><entry align="right"><parameter>popup_title</parameter> :</entry>
- <entry> Title to give the pattern popup window.
- </entry></row>
- <row><entry align="right"><parameter>initial_pattern</parameter> :</entry>
- <entry> The name of the pattern to set as the first selected.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-patterns-close-popup">gimp_patterns_close_popup ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_patterns_close_popup (<link linkend="gchar">gchar</link> *pattern_callback);</programlisting>
- <para>
- Popdown the Gimp pattern selection.
- </para>
- <para>
- This procedure closes an opened pattern selection dialog.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>pattern_callback</parameter> :</entry>
- <entry> The name of the callback registered for this popup.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-patterns-set-popup">gimp_patterns_set_popup ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_patterns_set_popup (<link linkend="gchar">gchar</link> *pattern_callback,
- <link linkend="gchar">gchar</link> *pattern_name);</programlisting>
- <para>
- Sets the current pattern selection in a popup.
- </para>
- <para>
- Sets the current pattern selection in a popup.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>pattern_callback</parameter> :</entry>
- <entry> The name of the callback registered for this popup.
- </entry></row>
- <row><entry align="right"><parameter>pattern_name</parameter> :</entry>
- <entry> The name of the pattern to set as selected.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
-
- </refsect1>
-
-
-
-
- </refentry>
-